package com.lry.poi;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.io.Serializable;

/**
 * @author JiangJie
 * @create 2020-11-27 09:42
 */
@ExcelTarget("Excel")
public class ExcelMode implements Serializable {

    @Excel(orderNum  = "1",name = "数据项名称")
    private String dataName;

    @Excel(orderNum = "2",name = "读/写")
    private String rw;

    @Excel(orderNum = "3",name = "寄存器地址")
    private short registerAddress;

    @Excel(orderNum = "4",name = "寄存器个数")
    private short registerNum;

    @Excel(orderNum = "5",name = "读功能码")
    private byte readFunc;

    @Excel(orderNum = "6",name = "写功能码")
    private byte writeFunc;

    @Excel(orderNum = "7",name = "数据格式")
    private String dataFormat;

    @Excel(orderNum = "8",name = "说明")
    private String desc;

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }

    public String getRw() {
        return rw;
    }

    public void setRw(String rw) {
        this.rw = rw;
    }

    public short getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(short registerAddress) {
        this.registerAddress = registerAddress;
    }

    public short getRegisterNum() {
        return registerNum;
    }

    public void setRegisterNum(short registerNum) {
        this.registerNum = registerNum;
    }

    public byte getReadFunc() {
        return readFunc;
    }

    public void setReadFunc(byte readFunc) {
        this.readFunc = readFunc;
    }

    public byte getWriteFunc() {
        return writeFunc;
    }

    public void setWriteFunc(byte writeFunc) {
        this.writeFunc = writeFunc;
    }

    public String getDataFormat() {
        return dataFormat;
    }

    public void setDataFormat(String dataFormat) {
        this.dataFormat = dataFormat;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "ExcelMode{" +
                "dataName='" + dataName + '\'' +
                ", rw='" + rw + '\'' +
                ", registerAddress='" + registerAddress + '\'' +
                ", registerNum='" + registerNum + '\'' +
                ", readFunc='" + readFunc + '\'' +
                ", writeFunc='" + writeFunc + '\'' +
                ", dataFormat='" + dataFormat + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
